<form id="form_edit_lib_word_en_meaning_in_m59" enctype="multipart/form-data" method="post" action="#" class="form">
    <input type="hidden" name="datagrid_code" value="lib_word_en_meaning_m59">
    <input type="hidden" name="id" value="{$id}">
    <div class="wrapper-form">
        <div id="form_content_edit_lib_word_en_meaning_in_m59">
            <dl class="row">
                <dt class="tit" style="width:80px;">
                    <label>释义</label>
                </dt>
                <dd class="opt">
                    <textarea name="meaning_en"   style="width:400px;" placeholder="英文"></textarea>
                    <textarea name="meaning_direct_cn"   style="width:400px;" placeholder="英文释义直译后的中文"></textarea>
                    <textarea name="meaning_cn"   style="width:400px;" placeholder="中文"></textarea>
                </dd>
            </dl>
        </div>
    </div>
</form>
<script>
    $(function(){
        //编辑接口里需要通过page_code去获取对应的纵列
        var subjectId = "{$id}";
        var subjectKeyword = "lib_word_en_meaning_in_m59";
        var datagridCode = "lib_word_en_meaning_m59";
        var formId = "#form_edit_" + subjectKeyword;
        // var formHtml = $(formId).autoProduceFormHtml(datagridCode);
        // var formContentId = "#form_content_edit_" + subjectKeyword;
        // $(formContentId).html(formHtml);
        // $.parser.parse(formContentId);

        var loadData = getDetailInfo(subjectId);
        $(formId).form("load", loadData);

        function getDetailInfo(subjectId) {
            var data = {};
            $.ajax({
                url: '/api/LibWordEnMeaning/getLibWordEnMeaningInfo',
                async: false,
                type: 'post',
                data: {id: subjectId},
                success: function (resp) {
                    if (1 == resp.code) {
                        data = resp.data;
                    }
                }
            });
            return data;
        }
    });
</script>